/**
 * 
 */
package com.shine.icis.hbean;

import java.io.Serializable;


/**
 * 步骤授权
 * @author zsy
 *
 */
public class NodeAssign implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1998411859294309098L;
	
	public static final char ASSIGN_TYPE_USER = 'U';//用户授权
	public static final char ASSIGN_TYPE_ROLE = 'R';//角色授权
	private String assignId;
	private char assignType;//授权类型
	private String assignValue;//授权值

	public String getAssignId() {
		return assignId;
	}

	public void setAssignId(String assignId) {
		this.assignId = assignId;
	}

	public char getAssignType() {
		return assignType;
	}

	public void setAssignType(char assignType) {
		this.assignType = assignType;
	}

	public String getAssignValue() {
		return assignValue;
	}

	public void setAssignValue(String assignValue) {
		this.assignValue = assignValue;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((assignId == null) ? 0 : assignId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final NodeAssign other = (NodeAssign) obj;
		if (assignId == null) {
			if (other.assignId != null)
				return false;
		} else if (!assignId.equals(other.assignId))
			return false;
		return true;
	}

}

